﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_IPORT.Master" CodeBehind="Config_IPORT.aspx.vb" Inherits="I_PORT.Config_IPORT" 
    title="IRPC INTELLIGENT PORT SERVICE" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor"
    TagPrefix="cc1" %>
 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript" language="javascript">
function checkNumber(e)
{
var keycode;

if (window.event) keycode = window.event.keyCode; // ใช้ IE อ่ะ

else if (e) keycode = e.which; // ใช้ Firefox เน่าะ

 if (((keycode > 47) && (keycode < 58))||(keycode == 190)||(keycode == 46))
 {
 return true;
 }
return false;
}

</script>
<asp:UpdatePanel ID="updatePanelConfig" runat="server">
<ContentTemplate>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
       <tr>
         <td style="width:20%;" align="right"><asp:Label ID="lbVat" runat="server" SkinID="lbtxt" Text="Vat :"></asp:Label>&nbsp;</td>
         <td align="left"><%--<asp:TextBox ID="txtVat" runat="server" Text="" style="text-align:right;" onkeypress="return checkNumber(this);" ></asp:TextBox>--%>
         <asp:TextBox ID="txtVat" runat="server" Text="" style="text-align:right;" Width="40px" ></asp:TextBox><asp:Label ID="Label1" runat="server" SkinID="lbtxt" Text=" %"></asp:Label>
         <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtVat"
                  Mask="99.99" MaskType="Number" AcceptNegative="Left" InputDirection="LeftToRight">
         </asp:MaskedEditExtender>
         </td>
       </tr>
       <tr>
          <td style="width:20%;" align="right"><asp:Label ID="lbBannerxx" runat="server" SkinID="lbtxt" Text="Baner :"></asp:Label>&nbsp;</td>
          <td align="left">
                <asp:FileUpload ID="FileUpload1" runat="server" />
           </td>
       </tr>
       <tr>
         <td style="width:20%;" align="right"><asp:Label ID="Label4" runat="server" SkinID="lbtxt" Text="ประกาศหน้าเว็ป :"></asp:Label>&nbsp;</td>
         <td align="left">
         <asp:TextBox ID="txtPost" runat="server"  Width="400px" ></asp:TextBox>
         </td>
       </tr>
       <tr>
         <td style="width:20%;" align="right"><asp:Label ID="Label5" runat="server" SkinID="lbtxt" Text="StandardTime(Befor) :"></asp:Label>&nbsp;</td>
         <td align="left">
             <asp:TextBox ID="txtBefore" runat="server"  Width="80px" onkeypress="return checkNumber(this);" ></asp:TextBox>&nbsp;<asp:Label ID="lbBeforeText" runat="server" SkinID="lbtxt" Text="Minute" ></asp:Label>&nbsp;<asp:Label ID="Label9" runat="server" SkinID="lbtxtNoColor" ForeColor="Red" Text="(กรณีไม่มีการบวกเวลาเพิ่มตามจำนวนสินค้าให้ทำการใส่ค่า 0)" ></asp:Label>
         </td>
       </tr>
       <tr>
         <td style="width:20%;" align="right"><asp:Label ID="Label6" runat="server" SkinID="lbtxt" Text="StandardTime(After) :"></asp:Label>&nbsp;</td>
         <td align="left">
             <asp:TextBox ID="txtAfter" runat="server"  Width="80px" onkeypress="return checkNumber(this);" ></asp:TextBox>&nbsp;<asp:Label ID="Label7" runat="server" SkinID="lbtxt" Text="Minute" ></asp:Label>&nbsp;<asp:Label ID="Label8" runat="server" SkinID="lbtxtNoColor" ForeColor="Red" Text="(กรณีไม่มีการบวกเวลาเพิ่มตามจำนวนสินค้าให้ทำการใส่ค่า 0)" ></asp:Label>
         </td>
       </tr>
       <tr id="rowEditor" runat="server" visible="false">
          <td colspan="2">
             <table width="100%" border="0" cellpadding="0" cellspacing="0" >
             <tr>
         <td style="width:20%;" align="right" valign="top"><asp:Label ID="lbHeadReport" runat="server" SkinID="lbtxt" Text="หัวรายงานค่าประมาณการ(Draft) :"></asp:Label>&nbsp;</td>
         <td align="left">
             <cc1:Editor ID="Editor1" runat="server" />
         </td>
       </tr>
       <tr>
         <td style="width:20%;" align="right" valign="top"><asp:Label ID="lbFootReport" runat="server" SkinID="lbtxt" Text="ท้ายรายงานค่าประมาณการ(Draft) :"></asp:Label>&nbsp;</td>
         <td align="left">
             <cc1:Editor ID="Editor2" runat="server" />
         </td>
       </tr>
       <tr>
         <td style="width:20%;" align="right" valign="top"><asp:Label ID="Label2" runat="server" SkinID="lbtxt" Text="หัวรายงานค่าประมาณการ :"></asp:Label>&nbsp;</td>
         <td align="left">
             <cc1:Editor ID="Editor3" runat="server" />
         </td>
       </tr>
       <tr>
         <td style="width:20%;" align="right" valign="top"><asp:Label ID="Label3" runat="server" SkinID="lbtxt" Text="ท้ายรายงานค่าประมาณการ :"></asp:Label>&nbsp;</td>
         <td align="left">
             <cc1:Editor ID="Editor4" runat="server" />
         </td>
       </tr>
             </table>
          </td>
       </tr>
       
       <tr>
         <td style="width:20%;" align="right">&nbsp;</td>
         <td align="left"><asp:Button ID="btnSave" runat="server" Text="บันทึก" CssClass="ButtonStyle" /></td>
       </tr>
</table>
</ContentTemplate>
<Triggers>
   <asp:PostBackTrigger ControlID="btnSave" />
</Triggers>
</asp:UpdatePanel>
<%--<script type="text/javascript"> 
//SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
tabdropdown.init("colortab", 2)
</script>--%>
</asp:Content>
